package com.example.perpetualcalendar.data.network;


import androidx.annotation.NonNull;

import io.reactivex.Scheduler;
import io.reactivex.schedulers.Schedulers;


public class AppSchedulerProvider implements SchedulerProvider {

    private static final AppSchedulerProvider instance = new AppSchedulerProvider();

    private AppSchedulerProvider() {
    }

    @NonNull
    public static AppSchedulerProvider getInstance() {
        return instance;
    }

    @NonNull
    @Override
    public Scheduler ui() {
        return Schedulers.computation();
    }

    @NonNull
    @Override
    public Scheduler io() {
        return Schedulers.io();
    }
}
